home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
util
/
time
/
MBClock.lha
/
MBClock
/
MBClock_ENG.doc
< prev
next >
Wrap
Text File
|
1998-12-11
|
6KB
|
208 lines
Introduction
------------
MBClock is a very simple clock that runs as a Commodity on the default
pubscreen.
MBClock was written in Oberon-A ©1995 by Frank Copeland.
Note:
The code for the clock was taken almost directly from Horst Schuman's
public domain clock.e code. (But improved a bit. It uses only about half of
the CPU time and it uses less memory even though my Clock program
has more features :-) )
(Sorry about the missing Danish doc. I hate writing docs and therefore
I will not translate any of my docs to Danish. It takes too much time.)
Copyright
---------
MBClock 1.3 is Copyright 1997 Morten Bjergstrøm.
This piece of software is freely distributable but still copyrighted.
Therefore you are not allowed to change the program in anyway and you
are not allowed to remove or add anything to the archive.
You are allowed to spread this program as much as you like but you may
not make any profit of it.
I cannot in anyway be held responsible for any damage MBClock may do to
your hardware or software or anything else. You use MBClock entirely on
your OWN risk.
It is allowed to include this program on public domain/shareware disks
if the price of one disk doesn't exceed 15 Dkr (4DM, $2).
It is allowed to include this program on CD-ROMS if the price of the
CD-ROM doesn't exceed the price of an Aminet CD (129Dkr, 20-25DM)
Magazines have to get my written permission to include MBClock on their
coverdisks/cdroms. If a magazine gets my written permission to use MBClock
on one of their coverdisks/cdroms they have to send me a copy of that
magazine including the coverdisk/cdrom free of charge.
Requirements
------------
MBClock requires OS2.1 and a bit of memory to run.
Installation
------------
Just copy the MBClock drawer where ever you want.
And if you need it you should copy the catalog for your language to
LOCALE:Catalogs/<language>/
Usage
-----
MBClock can be started from either the Shell or the Workbench.
MBClock is installed as a Commodity therefore you can quit MBClock
with the Exchange program. (The Active/Inactive cycle gadget has no effect)
MBClock supports the following tooltype:
DATEFORMAT (English version)
In addition MBClock supports a localized version of the tooltype.
The dateformat is a string containing control characters and normal text.
The following control characters are supported (taken from the locale
autodoc):
%a - abbreviated weekday name
%A - weekday name
%b - abbreviated month name
%B - month name
%c - same as "%a %b %d %H:%M:%S %Y"
%C - same as "%a %b %e %T %Z %Y"
%d - day number with leading 0s
%D - same as "%m/%d/%y"
%e - day number with leading spaces
%h - abbreviated month name
%H - hour using 24-hour style
%I - hour using 12-hour style
%j - julian date
%m - month number with leading 0s
%M - the number of minutes with leading 0s
%n - insert a linefeed
%p - AM or PM strings
%r - same as "%I:%M:%S %p"
%R - same as "%H:%M"
%S - number of seconds with leadings 0s
%t - insert a tab character
%T - same as "%H:%M:%S"
%U - week number, taking Sunday as first day of week
%w - weekday number
%W - week number, taking Monday as first day of week
%x - same as "%m/%d/%y"
%X - same as "%H:%M:%S"
%y - year using two digits with leading 0s
%Y - year using four digits with leading 0s
Example:
DATEFORMAT=%A. %d %B %Y
will produce something like: Tuesday. 23 September 1997
When started from the shell MBClock supports one argument:
English version: DATEFORMAT
(Note you have to write DATEFORMAT on the commandline else the argument
won't be recognized!)
EXAMPLE:
Run >NIL: <NIL: MBClock DATEFORMAT "%A. %d %B %Y"
will produce something like: Tuesday. 23 September 1997
Note:
The week number options for the dateformat don't work as they should.
Probably due to a bug in locale.library.
By pressing 'j' or 'J' in the active MBClock window you can jump the MBClock
window to the next public screen. (See below for bugs and remember that the
jump key is localized!)
Bugs
----
When 'j' is pressed to jump the MBClock window to the next public screen
problems can encounter if there are any public screens in the system that
doesn't allow visitor windows. This is not dangerous. Only annoying.
Note:
The only program I know that doesn't allow visitor windows on it's public
screen is CygnusEd ©1987-1993 CygnusSoft Software.
Translators
-----------
If you translate MBClock then remember to include a small text file like the
example below (please send translations (.cd and .ct files) to me and I will
include them in the next release of MBClock):
MBClock Danish translation by:
Morten Bjergstrøm
Holmebækhuse 115
4681 Herfølge
Denmark
EMail: morten_gomez@hotmail.com
DATEFORMAT = DATOFORMAT
JUMPKEY (J)= J
History
-------
20/ 9/1997: 1.0 First version
22/ 9/1997: 1.1 Second version
Added date in the screen title bar.
Corrected a bug that could close timer.device even though it was
not opened.
10/10/1997: 1.2
Now checks if disk based libraries was opened.
Tooltype and shell argument support for the date format.
Added possibility to jump to the next public screen by pressing
'j' or 'J' in the active MBClock window. (See Bugs)
Corrected one more bug in the timer routines.
5/12/1997: 1.3 (First public version)
Clock has been renamed to MBClock and is now partly localized.
The window is now always activated when it is jumped to another
screen.
To do
-----
- Error messages when something goes wrong. (If anybody needs them.)
- Other improvements. Tell me what you need.
- Full localization (localization of ReadArgs. The Shell template).
Address
-------
Mail address:
Morten Bjergstrøm
Krovænget 11
4671 Strøby
Denmark
EMail address:
mbjergstroem@hotmail.com
Other programs by me
--------------------
AddIcon (should be in util/wb)
OberonAModules (should be in dev/obero)
SortIcons (should be in util/wb)